<?php
include_once ("../php/connect_mysql.php");
$cid = $_GET['cid'];

//删除语句
$sql = "UPDATE comment_info SET favor = IFNULL(favor,0)+1 WHERE cid = $cid";
//执行sql语句
$conn->query($sql);

header("Location:../../Guestbook/index.php");